﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using XZL.GM.Entity;

/// <summary>
/// AdminBasePage 的摘要说明
/// </summary>
public class AdminBasePage : System.Web.UI.Page
{
	public AdminBasePage()
	{
	}

    protected void Page_Init(object sender, EventArgs e)
    {
        if (Session["AdminUserInfo"] == null)
        {
            Response.Redirect("~/Login.aspx");

        }
    }

    /// <summary>
    /// 当前用户信息
    /// </summary>
    public UserInfo AdminUser
    {
        get
        {
            if (Session["AdminUserInfo"] != null)
            {
                UserInfo u = Session["AdminUserInfo"] as UserInfo;
                return u;
            }
            return null;
        }
    }
}